package org.dding.core.management;

import org.dding.core.manager.IModuleManager;

public class MBeanFactory {

	private static ModuleContainerMBean loader;

	public static synchronized ModuleContainerMBean createModuleManager(Object manager) {
		if (loader == null) {
			if (manager instanceof IModuleManager) {
				loader = new ModuleContainer((IModuleManager) manager);
			}
		}
		return loader;
	}
}
